'use strict';
var myApp = angular.module('stmms', [
        'ui.router',
        'ui.bootstrap',
        'ngResource',
        'ngAnimate',
        'cgBusy',
        'toaster',
        'chart.js',
        'easypiechart',
        'ngDialog',
        'pdf'
    ])
    .constant('_', window._)
    .run(
        ['$rootScope', '$state', '$stateParams', '$window',
            function($rootScope, $state, $stateParams, $window) {
                $rootScope.$state = $state;
                $rootScope.$stateParams = $stateParams;
                $rootScope._ = window._;
            }
        ]
    );



myApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.cache = false;
if (!$httpProvider.defaults.headers.get) {
    $httpProvider.defaults.headers.get = {};
}
// disable IE ajax request caching
$httpProvider.defaults.headers.get['If-Modified-Since'] = '0';
}]);


